{extend name="common:base" /}

{block name="page_title"}{$controllerName}列表{/block}
{block name="style"}
{/block}
{block name="content"}
<div class="box  box-primary">
    <div class="box-header with-border">
        <div class="row">
            <div class="col-xs-1">
                <div class="btn-group">
                    <a href="{:url('category_add')}" class="btn btn-default">添加分类</a>
                </div>
            </div>
        </div>
    </div>
    <div class="box-body">
        <table class="table table-hover table-striped">
            <thead>
            <tr>
                <th width="50">编号</th>
                <th>名称</th>
                <th>排序</th>
                <th width="250">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="datas" id="v"}
                <tr>
                    <td>{$v.id}</td>
                    <td>{$v.html|raw} {$v.cat_name}</td>
                    <td>{$v.sort}</td>
                    <td>
                        <a href="{:url('category_edit',array('id'=>hashIdEncode($v['id'])))}">编辑</a>
                        <a class="confirm-rst-url-btn" href="{:url('category_del',array('id'=>hashIdEncode($v['id'])))}" data-info="你确定要删除吗？">删除</a>
                    </td>
                </tr>
            {/volist}
            </tbody>
        </table>
        <table id="demo"></table>
    </div>
</div>
{/block}

{block name="script"}
{/block}